package cn.edu.zafu.bigdata.zengyadian;
import java.sql.SQLException;

public class Main {
    public static void main(String[] args) {
        // 创建新闻类别表
        NewsCategory.createTable();
        // 创建新闻内容表
        try {
            NewsContent.createTable();
        } catch (SQLException e) {
            throw new RuntimeException(e);
        }

        // 测试用户注册
        boolean isRegistered = UserRegistrationLogin.registerUser("testuser", "testpassword");
        System.out.println("User registered: " + isRegistered);

        // 测试用户登录
        boolean isLoggedIn = UserRegistrationLogin.loginUser("testuser", "testpassword");
        System.out.println("User logged in: " + isLoggedIn);
    }
}